package com.ruoyi.ea.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ea.mapper.HelpMapper;
import com.ruoyi.ea.domain.Help;
import com.ruoyi.ea.service.IHelpService;

/**
 * 就业帮扶Service业务层处理
 * 
 * @author wb
 * @date 2023-01-29
 */
@Service
public class HelpServiceImpl implements IHelpService 
{
    @Autowired
    private HelpMapper helpMapper;

    /**
     * 查询就业帮扶
     * 
     * @param id 就业帮扶主键
     * @return 就业帮扶
     */
    @Override
    public Help selectHelpById(Long id)
    {
        return helpMapper.selectHelpById(id);
    }

    /**
     * 查询就业帮扶列表
     * 
     * @param help 就业帮扶
     * @return 就业帮扶
     */
    @Override
    public List<Help> selectHelpList(Help help)
    {
        return helpMapper.selectHelpList(help);
    }

    /**
     * 新增就业帮扶
     * 
     * @param help 就业帮扶
     * @return 结果
     */
    @Override
    public int insertHelp(Help help)
    {
        return helpMapper.insertHelp(help);
    }

    /**
     * 修改就业帮扶
     * 
     * @param help 就业帮扶
     * @return 结果
     */
    @Override
    public int updateHelp(Help help)
    {
        return helpMapper.updateHelp(help);
    }

    /**
     * 批量删除就业帮扶
     * 
     * @param ids 需要删除的就业帮扶主键
     * @return 结果
     */
    @Override
    public int deleteHelpByIds(Long[] ids)
    {
        return helpMapper.deleteHelpByIds(ids);
    }

    /**
     * 删除就业帮扶信息
     * 
     * @param id 就业帮扶主键
     * @return 结果
     */
    @Override
    public int deleteHelpById(Long id)
    {
        return helpMapper.deleteHelpById(id);
    }
}
